[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Create a new OrderedMultiDictionary. If duplicate values
are allowed, multiple copies of the same value can be associated with the same key. For example, the key "foo"
could have "a", "a", and "b" associated with it. If duplicate values are not allowed, only one copies of a given value can
be associated with the same key, although different keys can have the same value. For example, the key "foo" could
have "a" and "b" associated with it, which key "bar" has values "b" and "c" associated with it.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public OrderedMultiDictionary(
bool allowDuplicateValues,
Comparison<TKey> keyComparison,
Comparison<TValue> valueComparison
) |
Visual Basic (Declaration) |
---|
Public Sub New ( _
allowDuplicateValues As Boolean, _
keyComparison As Comparison(Of TKey), _
valueComparison As Comparison(Of TValue) _
) |
Visual C++ |
---|
public:
OrderedMultiDictionary (
bool allowDuplicateValues,
Comparison<TKey>^ keyComparison,
Comparison<TValue>^ valueComparison
) |
Parameters
- allowDuplicateValues
- Boolean
Can the same value be associated with a key multiple times?
- keyComparison
- Comparison<(Of <TKey>)>
A delegate to a method that will be used to compare keys.
- valueComparison
- Comparison<(Of <TValue>)>
A delegate to a method that will be used to compare values.
See Also